package com.hex.ds.hdtp.core.inf.metadata.repository;

import com.hex.ds.hdtp.core.inf.common.page.Page;
import com.hex.ds.hdtp.core.inf.common.repository.IBasicRepository;
import com.hex.ds.hdtp.core.inf.metadata.po.SourceInfoPo;

import java.util.List;

public interface ISourceInfoRepository extends IBasicRepository<SourceInfoPo> {

    Page<SourceInfoPo> queryListByPage(SourceInfoPo sourceInfo, Page<SourceInfoPo> page);

    List<SourceInfoPo> findDefaultSource();

    SourceInfoPo queryBySourceCode(final String sourceCode);

    void modifyIsDefault(SourceInfoPo sourceInfoPo);

}
